/
33<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>管理员管理-有点</title>
<link rel="stylesheet" type="text/css" href="<?php echo Url::base(); ?>/resource/css.css">
<link rel="stylesheet" type="text/css" href="<?php echo Url::base(); ?>/resource/pageGroup.css">
<script type="text/javascript" src="<?php echo Url::base(); ?>/resource/jquery.js"></script>
<script type="text/javascript" src="<?php echo Url::base(); ?>/resource/jquery-1.js"></script>
<script type="text/javascript" src="






 /resource/pageGroup.js"></script>


<!-- <script type="text/javascript" src="js/page.js" ></script> -->
</head>

<body>
	<div id="pageAll">
		<div class="pageTop">
			<div class="page">
				<img src="<?php echo Url::base(); ?>/resource/coin02.png"><span><a href="#">首页</a>&nbsp;-&nbsp;-</span>&nbsp;管理员管理
			</div>
		</div>

		<div class="page">
			<!-- user页面样式 -->
			<div class="connoisseur">
				<div class="conform">
					<?
						if($type != 'detail'){
					?>
								
					<form method="post" action="<?php echo Url::base(); ?>index.php/categorym/insert">
						<div class="cfD">
							分类:
							<select name="parentId">
								<option  value="0">
									创建总类
								</option>
								<?php foreach($category  as $key=>$val){
									if($val['parentId'] == 0){
								?>
								<option  value="<?php echo $val['id'];?>">
									<?php echo $val['name'];?>
								</option>
								<?php }} ?>
							</select>

							<br>

							名称:
							<input class="userinput" placeholder="输入名称" name="name" type="text"><br>
							顺序:
							<input class="userinput" placeholder="输入顺序" name="sort" type="text"><br>
							<button  type="submit"class="userbtn">添加</button>
						</div>
					</form>

					<?php }?>
				</div>
				<!-- user 表格 显示 -->
				<div class="conShow">
					<table border="1" cellpadding="0" cellspacing="0">
						<tbody><tr>
							<td class="tdColor tdC" width="66px">序号</td>
							<td class="tdColor" width="235px">名称</td>
							<td class="tdColor" width="100px">顺序</td>
							<td class="tdColor" width="130px">产品总数</td>
							<td class="tdColor" width="130px">状态</td>
							<td class="tdColor" width="330px">创建时间</td>
							<td class="tdColor" width="330px">操作</td>
						</tr>

						<?php foreach($category  as $key=>$val){
							
						?>


						<tr height="40px">
						<td><?php echo $val['id'];?></td>
							<td><?php echo $val['name'];?></td>
							<td><?php echo $val['sort'];?></td>
							<td><?php echo $val['products'];?></td>
							<td><?php echo $val['status'];?></td>
							<td><?php echo $val['createDate'];?></td>
							<td>
								<a href="<?php echo Url::base(); ?>index.php/categorym/update_page?id=<?php echo $val['id'];?>&status=1" >修改</a>

								<a href="<?php echo Url::base(); ?>index.php/categorym/update?id=<?php echo $val['id'];?>&status=1" >下架</a>
								<a href="<?php echo Url::base(); ?>index.php/categorym/update?id=<?php echo $val['id'];?>&status=2" >上架</a>
								<a href="<?php echo Url::base(); ?>index.php/categorym/detail?id=<?php echo $val['id'];?>" target="_blank">查看详细</a>
							</td>
						</tr>
						<?php } ?>
					</tbody></table>
					
					<div class="paging">
				
			</div>
		</div>

	</div>


	<!-- 删除弹出框 -->
	<div class="banDel">
		<div class="delete">
			<div class="close">
				<a><img src="<?php echo Url::base(); ?>/resource/shanchu.png"></a>
			</div>
			<p class="delP1">你确定要删除此条记录吗？</p>
			<p class="delP2">
				<a href="#" class="ok yes">确定</a><a class="ok no">取消</a>
			</p>
		</div>
	</div>
	<!-- 删除弹出框  end-->


<script type="text/javascript">
// 广告弹出框
$(".delban").click(function(){
  $(".banDel").show();
});
$(".close").click(function(){
  $(".banDel").hide();
});
$(".no").click(function(){
  $(".banDel").hide();
});
// 广告弹出框 end
</script>
</body></html>